#include <iostream>
#include <string>
using namespace std;
struct Student
{
    /* data */
    string name;
    int age;
    char sex;
};
struct Teacher
{
    /* data */
    string name;
    int id;
    struct Student stu;
};

int main()
{
    Student Array[3] = {
        {"方现伟", 12, 'm'},
        {"方现伟1", 132, 'x'},
        {"方现伟2", 132, 'y'},
    };
    for (int i = 0; i < 3; i++)
    {
        /* code */
        cout << "name: " << Array[i].name << "\t" << Array[i].age << "\t" << Array[i].sex << endl;
    }
    Student s = {"fangxianwei", 200, 'v'};
    Student *p = &s;
    cout << p->age << p->name << p->sex << endl;
    Teacher s1 = {"wangjingjing", 2000, {"liu", 203, 'o'}};
    cout << s1.id << s1.name << s1.stu.age << s1.stu.name << s1.stu.sex << endl;
    return 0;
}